
import login from "./public/cook/port/login"
import registry from "./public/cook/port/registry"
import remove from "./public/cook/port/remove"
import amend from "./public/cook/port/amend"
import check from "./public/cook/port/check"
import sort from "./public/cook/port/sort"
import getstudent from "./public/paging/port/getstudent"


export default function publicText(req, res) {
    let pathname = req.pathname
    const obj={
        //登录注册 以及菜品的增删改查接口
        "/login": login,// 登录
        "/registry": registry,//注册
        "/remove": remove,//删除
        "/amend": amend,//修改
        "/check": check,//查询
        "/sort": sort,//排序
        //学生管理页面分页接口
        "/getstudent":getstudent,
         
        

    }
    if(obj[`${pathname}`]){
        return obj[`${pathname}`](req,res)
    }
    return true;

}